﻿#Region "Copyright"
'————————————————————————————————————————
'	创建人员(Creator)    ：Huangyd
'	创建日期(Date)       ：2013-03-14
'   联系方式(Email)      ：aj-ayumi@163.com; gajayumi@gmail.com; ajayumi@me.com
'   描    述(Description)：
'
'	Copyright (C) 2012-2013 ajayumi 版权所有
'————————————————————————————————————————
#End Region

Namespace IO

    Public Class File

#Region "打开指定路径的文件－－OpenFile(filePath)"
        ''' <summary>
        ''' 打开指定路径的文件
        ''' </summary>
        ''' <param name="filePath">被打开的文件的路径</param>
        ''' <returns>返回布尔值，成功返回真，否则为假</returns>
        ''' <remarks></remarks>
        Public Shared Function OpenFile(ByVal filePath As String) As Boolean
            Try
                If System.IO.File.Exists(filePath) Then
                    System.Diagnostics.Process.Start(filePath)
                    Return True
                Else
                    Return False
                End If
            Catch ex As Exception
                Throw ex
            End Try
        End Function
#End Region

    End Class

End Namespace
